/*
 * OrderDetailInfoHolder.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 订单详情 商品信息及价格 */
public class OrderDetailGoodsInfoHolder extends ViewHolder {
    public ImageView mIvGoodsImage;
    public TextView mTvTitle;
    public TextView mTvSingelPrice;
    public TextView mTvCount;
    public LinearLayout mLlInfo;
    public LinearLayout mLlGoodsActiveInfo;
    public TextView mTvActiveTitle;
    public TextView mTvActiveInfo;

    @Override
    protected void initView(View rootView) {
        mLlInfo = (LinearLayout) rootView.findViewById(R.id.ll_info);
        mIvGoodsImage = (ImageView) rootView.findViewById(R.id.iv_goods_image);
        mTvTitle = (TextView) rootView.findViewById(R.id.tv_title);
        mTvSingelPrice = (TextView) rootView.findViewById(R.id.tv_singel_price);
        mTvCount = (TextView) rootView.findViewById(R.id.tv_count);
        mLlGoodsActiveInfo = (LinearLayout) rootView.findViewById(R.id.ll_goods_active_info);
        mTvActiveTitle = (TextView) rootView.findViewById(R.id.tv_active_title);
        mTvActiveInfo = (TextView) rootView.findViewById(R.id.tv_active_info);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_order_goods_detail;
    }
}
